package com.speed_run.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.speed_run.vo.*;
import org.apache.ibatis.annotations.Param;

import com.speed_run.model.ExerciseData;

public interface ExerciseMapper {
    public void saveEntity(ExerciseData vo);
    public List<ExerciseSubVo> getSubVo(@Param("userId") String userId, @Param("startDate") Date startDate, @Param("endDate")Date endDate);
    public List<StatisResultVo> getResult(@Param("userId") String userId);
    public List<StatisInnerVo> getDetailResult(@Param("userId") String userId);
    List<Map<String, Object>> getBarData(@Param("userId")String userId, @Param("startDate") Date startDate, @Param("endDate")Date endDate);
    public Map<String, Object> getAvgData(@Param("userId")String userId, @Param("startDate") Date startDate, @Param("endDate")Date endDate);
    public Map<String, Object> getDataByType(@Param("userId")String userId, @Param("date")Date date, @Param("type")Integer type);
    public void updateData(Map<String, Object> data);
}
